
var mySwiper = new Swiper('.swiper-container', {
    //   direction: 'vertical', // 垂直切换选项
    loop: true, // 循环模式选项
    autoplay: true,
    effect: 'fade',
    autoplay: {
        disableOnInteraction: false,
    },

    // 如果需要分页器
    pagination: {
        el: '.swiper-pagination',
        clickable: true,

        renderBullet: function (index, className) {
            return '<span class="' + className + '"style="width: 12px;height: 12px;border:1px solid #fff;position:relative;left:500px;top:-70px"></span>';
        }
    },

    // 如果需要前进后退按钮
    navigation: {
        nextEl: '.button-next',
        prevEl: '.button-prev',
    },

    // 如果需要滚动条
    /*  scrollbar: {
       el: '.swiper-scrollbar',
     }, */

})
//如果你开启了clickable，还可以这样  
for (var i = 0; i < mySwiper.pagination.bullets.length; i++) {
    mySwiper.pagination.bullets[i].onmouseover = function () {
        this.click();
    };
}